package com.etone.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.etone.system.mapper.FiveTaskinfoMapper;
import com.etone.system.domain.FiveTaskinfo;
import com.etone.system.service.IFiveTaskinfoService;

/**
 * 潜伏车运行日志记录Service业务层处理
 * 
 * @author etone
 * @date 2025-05-26
 */
@Service
public class FiveTaskinfoServiceImpl implements IFiveTaskinfoService 
{
    @Autowired
    private FiveTaskinfoMapper fiveTaskinfoMapper;

    /**
     * 查询潜伏车运行日志记录
     * 
     * @param id 潜伏车运行日志记录主键
     * @return 潜伏车运行日志记录
     */
    @Override
    public FiveTaskinfo selectFiveTaskinfoById(Long id)
    {
        return fiveTaskinfoMapper.selectFiveTaskinfoById(id);
    }

    /**
     * 查询潜伏车运行日志记录列表
     * 
     * @param fiveTaskinfo 潜伏车运行日志记录
     * @return 潜伏车运行日志记录
     */
    @Override
    public List<FiveTaskinfo> selectFiveTaskinfoList(FiveTaskinfo fiveTaskinfo)
    {
        return fiveTaskinfoMapper.selectFiveTaskinfoList(fiveTaskinfo);
    }

    /**
     * 新增潜伏车运行日志记录
     * 
     * @param fiveTaskinfo 潜伏车运行日志记录
     * @return 结果
     */
    @Override
    public int insertFiveTaskinfo(FiveTaskinfo fiveTaskinfo)
    {
        return fiveTaskinfoMapper.insertFiveTaskinfo(fiveTaskinfo);
    }

    /**
     * 修改潜伏车运行日志记录
     * 
     * @param fiveTaskinfo 潜伏车运行日志记录
     * @return 结果
     */
    @Override
    public int updateFiveTaskinfo(FiveTaskinfo fiveTaskinfo)
    {
        return fiveTaskinfoMapper.updateFiveTaskinfo(fiveTaskinfo);
    }

    /**
     * 批量删除潜伏车运行日志记录
     * 
     * @param ids 需要删除的潜伏车运行日志记录主键
     * @return 结果
     */
    @Override
    public int deleteFiveTaskinfoByIds(Long[] ids)
    {
        return fiveTaskinfoMapper.deleteFiveTaskinfoByIds(ids);
    }

    /**
     * 删除潜伏车运行日志记录信息
     * 
     * @param id 潜伏车运行日志记录主键
     * @return 结果
     */
    @Override
    public int deleteFiveTaskinfoById(Long id)
    {
        return fiveTaskinfoMapper.deleteFiveTaskinfoById(id);
    }
}
